//
//  KPBaseTableViewController.swift
//  KPBaseProject
//
//  Created by Kipp Dev on 2018/3/24.
//  Copyright © 2018年 Kipp. All rights reserved.
//

import UIKit
import RxSwift
import TangramKit
import Material

class KPBaseTableViewController: UITableViewController {

    let bag = DisposeBag()
    override func viewDidLoad() {
        super.viewDidLoad()
        //        prepareTableView()
        config()
    }


    // MARK: - 基类配置
    func config() {
        view.backgroundColor = #colorLiteral(red: 0.9490196078, green: 0.9490196078, blue: 0.9490196078, alpha: 1)
        tableView?.tableFooterView = UIView()//去掉空页
        kp_setNavigationBarColor(color: UIColor.Material.white, tintColor: UIColor.Material.black)

    }

    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        //        tableView.frame = view.bounds
    }



    override var preferredStatusBarStyle: UIStatusBarStyle {
        return .default
    }

    override func setNeedsStatusBarAppearanceUpdate() {
        super.setNeedsStatusBarAppearanceUpdate()
    }

    override func rt_customBackItem(withTarget target: Any!, action: Selector!) -> UIBarButtonItem! {
        return UIBarButtonItem.init(image: #imageLiteral(resourceName: "返回"), style: .plain, target: target, action: action)
    }
}
